package com.gopay.cashier.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.gopay.cashier.service.UserInfoService;
import com.gopay.common.domain.UserInfo;
import com.gopay.common.user.manager.UserInfoQueryManager;

@Service
public class UserInfoServiceImpl implements UserInfoService {
    @Autowired
    protected UserInfoQueryManager userInfoManager;

    @Override
    public UserInfo getByEmail(String email) {
        return userInfoManager.getUserInfoByEmail(email);
    }

    @Override
    public List<UserInfo> getByCustId(String custId) {
        return userInfoManager.getByCustId(custId);
    }

    @Override
    public UserInfo get(String userId) {
        return userInfoManager.get(userId);
    }

}
